package com.csw.shuanfa.SuanFa;

/**
 * 示例 2：
 * 输入:
 * s = ""pineapplepenapple""
 * wordDict = [""apple"", ""pen"", ""applepen"", ""pine"", ""pineapple""]
 * 输出:
 * [
 * ""pine apple pen apple"",
 * ""pineapple pen apple"",
 * ""pine applepen apple""
 * ]
 */
public class TestString {
    public static void main(String[] args) {
        String s = "pineapplepenapple";
        String[] str = {"applea", "pen", "applepen", "pine", "pineapple"};
        for (int i = 0; i < str.length; i++) {
            String sN = s.replace(str[i], "");
            if (s.length() != sN.length()) {

            }
        }
    }
}
